Computer-readable recording medium, simulation method, and simulation device

ABSTRACT

A simulation program, simulation method, or simulation device simulates the temporal shape change in a fluid. The simulation program, simulation method, and simulation device are characterized in that with respect to a fluid model representing the fluid as a collection of particles, a surface tension of an interface against another phase which is different from the phase of the fluid is calculated using a function to calculate a surface energy of the interface, and the shape change in the fluid is calculated on the basis of the calculated surface tension.

CROSS-REFERENCE TO RELATED APPLICATION

This application is a continuation application of International Application PCT/JP2012/055697 filed on Mar. 6, 2012 and designated the U.S., the entire contents of which are incorporated herein by reference.

FIELD

The embodiments discussed herein are related to a computer-readable recording medium, a simulation method, and a simulation device.

BACKGROUND

As computing power of computers has improved in recent years, methods for computer simulations have developed. As a result, computer simulations have been used for various fields of application.

As numerical calculation methods for solving problems of the continuum such as in fluids and elastic bodies, the finite difference method, finite element method, or finite volume method or the like for solving the approximate solution of a differential equation on the basis of a mesh have often been used. Since numerical calculation has been utilized in fields of application such as CAE (Computer Aided Engineering), these numerical calculation methods have developed, and problems in which a fluid and a structure interact with each other have been solved.

However, in a method for using a mesh for numerical calculation, handling of cases where a moving boundary is generated is complicated, such as in a problem in which an interface such as a free surface is present and in a fluid-structure interaction problem, so program creation is often difficult.

In contrast, in a particle method (such as an MPS (Moving Particle Semi-implicit) method, SPH (Smoothed Particle Hydrodynamics) method, or the like) in which a mesh is not used for numerical calculation, special treatment is not needed in the handling of the moving boundary. Therefore, particle methods have been widely used in recent years.

FIG. 1 is a diagram explaining a problem of the particle method.

The particle method has been developed with an aim of handling easily a boundary which deforms and moves, such as a free surface or the like. Since the continuum becomes a mere particle group composed of particles 11 due to a discretization method, where the boundary surface of the continuum exists is unclear, as illustrated in FIG. 1. Therefore, there has been no unified method in the particle method for problems in which a boundary of surface tension or the like has to be visibly treated.

As for finite difference method and finite element method, there exists a calculation method for surface tension called a CSF (Continuum Surface Force) model (for example, see Non-Patent Document 1). The CSF model was applied to the particle method by X. Y. Hu, and N. A. Adams, and the calculation of surface tension by the particle method was thereby enabled (for example, see Non-Patent Document 2). In addition, there exists a method for determining surface tension as an interaction between particles (for example, see Patent Document 1), and a method for determining surface tension on the basis of deviation of neighboring particles from the position of the center of gravity (for example, see Non-Patent Documents 3, 4).

Here, an outline of the calculation method based on the CSF model applied to the particle method will be explained.

FIG. 2 is a diagram illustrating an influence radius and a continuous function obtained by overlapping kernel functions.

First, a color function <C_(i)> used for calculation of surface tension is defined as follows:

$\begin{matrix} {\left\langle C_{i} \right\rangle = {\sum\limits_{j}\;{\frac{m_{j}}{\rho_{j}}{W\left( {{{r_{i} - r_{j}}},h} \right)}}}} & \left\lbrack {{Formula}\mspace{14mu} 1} \right\rbrack \end{matrix}$ wherein a subscript i expresses the value of i-th particle 11, and j expresses the value of j-th particle 11. r,m,ρ are the position vector, mass, and density of the particle 11, respectively, and a value is given to each particle 11. W is an overlap of kernel functions 22 used in the SPH method, and a cubic spline function 23 or the like is often used. h expresses a radius of a spherical area in which the value of the kernel function 22 is non-zero, and is called as an influence radius 21 as illustrated in FIG. 2.

The gradient of the color function (∇C_(i)) is a standard method for the SPH method, and is calculated as follows.

$\begin{matrix} {{\nabla C_{i}} = {\rho_{i}{\sum\limits_{j}\;{{m_{j}\left( {\frac{\left\langle C_{j} \right\rangle}{\rho_{j}^{2}} + \frac{\left\langle C_{i} \right\rangle}{\rho_{i}^{2}}} \right)}\frac{\partial{W\left( {{{r_{i} - r_{j}}},h} \right)}}{\partial r_{i}}}}}} & \left\lbrack {{Formula}\mspace{14mu} 2} \right\rbrack \end{matrix}$

The surface tension applied to the particle i is defined as follows using the above [Formula 2].

$\begin{matrix} {{f_{s,i} = {\sum\limits_{j}\;{m_{i}{m_{j}\left( \frac{T_{i} + T_{j}}{\rho_{i}\rho_{j}} \right)}\frac{r_{i} - r_{j}}{{r_{i} - r_{j}}}{W^{\prime}\left( {{{r_{i} - r_{j}}},h} \right)}}}}{wherein}T_{i} = {\Gamma_{g}\frac{1}{{\nabla C_{i}}}{\left( {{\frac{1}{d}I{{\nabla C_{i}}}^{2}} - {{\nabla C_{i}} \otimes {\nabla C_{i}}}} \right).}}} & \left\lbrack {{Formula}\mspace{14mu} 3} \right\rbrack \end{matrix}$ Γ_(g) is a surface tension coefficient, d is the dimension(s), and I is an identity matrix.

The calculation method based on the CSF model is a calculation method for performing time development using the surface tension obtained by the above [Formula 3].

FIGS. 3-7 are diagrams illustrating the temporal changes of the result of using the conventional calculation method based on the CSF model.

As illustrated in FIGS. 3-7, in the calculation method based on the CSF model, a fluid parcel falls due to gravity receiving the influence of surface tension, and collides against a plane surface. The calculation method disclosed in Non-patent Document 2 is used for the calculation of the behaviors illustrated in FIGS. 3-7. In FIGS. 3-7, the vertical direction is set to be the y-axis so that y=0 expresses a wall surface, and the fluid 31 cannot enter the position where y<0.

As illustrated in FIG. 3, the initial shape of the fluid 31 is a square of 0.05[m]×0.05[m]. In addition,

Γ_(g)=10

[N/m²],

ρ_(i)=1000

[kg/m³],

h=0.0046875

[m],

c=109.8

[m/s],

dt=1.423×10⁻⁶

[s], viscosity

μ

is 0.001[m²/s], gravity acceleration

g=9.8

[m²/s], and a cubic spline function is used as a kernel function. The particles in the initial state are positioned in a uniform grid pattern (33 particles per side, for a total of 1,089 particles), and the velocity of all particles is zero.

As for the calculation results, as illustrated in FIG. 4, the distribution of the fluid 31 is in a smooth circular shape at time 0.04[s], and as illustrated in FIG. 5, the fluid 31 collides against the wall at time 0.14[s] and greatly deforms.

-   [Patent Document 1] Japanese Laid-open Patent Publication No.     2008-111675 -   [Non-Patent Document 1] B. Lafaurie, C. Nardone, R. Scardovelli, S.     Zaleski, and G. Zanetti, “Modelling Merging and Fragmentation in     Multiphase Flows with SuRFER”, Journal of Computational Physics,     113, 134, 147, (1994) -   [Non-Patent Document 2] X. Y. Hu, N. A. Adams, “A multi-phase SPH     method for macroscopic and mesoscopic flows”, Journal of     Computational Physics, 213, pp. 844-861 (2006) -   [Non-Patent Document 3] T. Hongo, M. Shigeta, S. Izawa, and Y.     Fukunishi, “Sanjigen Hiassuku SPH Hou ni okeru Kiekikaimen ni     Sayousuru Hyoumenchouryokumoderu (Surface Tension Model Acting on     Gas-Liquid Interface in Three-Dimensional Incompressible SPH     Method)” Dai 23 kai Suuchi Ryuutairikigaku shinpojiumu (The 23rd     Numerical Fluid Dynamics Symposium), A8-5 (2009) -   [Non-Patent Document 4] M. Agawa, M. Shigeta, S. Izawa, and Y.     Fukunishi, “Shamenjyo wo Ryuugesuru Ekitai no Hiasshuku SPH     Simureshon (Incompressible SPH Simulation of Fluid Flowing Down on     Slope)”, Dai 23 kai Suuchi Ryuutairikigaku shinpojiumu (The 23rd     Numerical Fluid Dynamics Symposium), A9-4 (2009)

SUMMARY

However, in the abovementioned conventional method for calculating the surface tension, there is a problem wherein a behavior generating unnatural velocity distribution in the fluid 31 sometimes appears when the collided fluid 31 greatly deforms.

In the abovementioned example, the shape is lost at time 0.7 [s] as illustrated in FIG. 6, and unnaturally distributed velocity distributions 32 are generated as illustrated in FIG. 7.

In one proposal, according to an aspect of a computer-readable recording medium having stored therein a program for causing a computer to execute a process for simulating a temporal shape change in a fluid, the process includes calculating, with respect to a fluid model based on a particle method, the model representing the fluid as a collection of particles, a surface tension of an interface against another phase by using a function to calculate a surface energy of the interface, and calculating the shape change in the fluid on the basis of the calculated surface tension.

The object and advantages of the invention will be realized and attained by means of the elements and combinations particularly pointed out in the claims.

It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory and are not restrictive of the invention.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a diagram for expressing a problem of a particle method.

FIG. 2 is a diagram illustrating an influence radius and a continuous function obtained by overlapping kernel functions.

FIG. 3 is a diagram illustrating the temporal change in the result of using a conventional calculation method based on a CSF model (time=0 [s]).

FIG. 4 is a diagram illustrating the temporal change in the result of using the conventional calculation method based on the CSF model (time=0.04 [s]).

FIG. 5 is a diagram illustrating the temporal change in the result of using the conventional calculation method based on the CSF model (time=0.14 [s]).

FIG. 6 is a diagram illustrating the temporal change in the result of using the conventional calculation method based on the CSF model (time=0.7 [s]).

FIG. 7 is a diagram illustrating the temporal change in the result of using the conventional calculation method based on the CSF model (time=0.7 [s]: unnatural velocity distribution is generated).

FIG. 8 is a diagram for explaining surface tension coefficients.

FIG. 9 is a diagram illustrating a configuration example of a simulation device to which the present invention is applied.

FIG. 10 is a diagram for explaining a function smoothly approximating surface energy χ with width ε.

FIG. 11 a diagram illustrating an example of a two-dimensional fluid.

FIG. 12 is a diagram for explaining a state in which a particle collides against a wall surface.

FIG. 13 is a flowchart illustrating the flow of simulation processing to which the present invention is applied.

FIG. 14 is a diagram illustrating the temporal change in the result of using the simulation processing to which the present invention is applied, with respect to the shape of the fluid (time=0 [s]).

FIG. 15 is a diagram illustrating the temporal change in the result of using the simulation processing to which the present invention is applied, with respect to the shape of the fluid (time=0.04 [s]).

FIG. 16 is a diagram illustrating the temporal change in the result of using the simulation processing to which the present invention is applied, with respect to the shape of the fluid (time=0.14 [s]).

FIG. 17 is a diagram illustrating the temporal change in the result of using the simulation processing to which the present invention is applied, with respect to the shape of the fluid (time=0.7 [s]).

FIG. 18 is a diagram illustrating the temporal change in the result of using the simulation processing to which the present invention is applied, with respect to the shape of the fluid (time=0.7 [s]: unnatural velocity distribution is not generated).

FIG. 19 is a diagram illustrating the effect of an approximation function in a second embodiment.

FIG. 20 is a diagram illustrating the configuration of an information processing device.

DESCRIPTION OF EMBODIMENTS

Hereinafter, embodiments of the present invention will be described in detail referring to the diagrams.

The embodiments to which the present invention is applied are a simulation program to be executed by a computer, a simulation method, and a simulation device. A fluid as a target of simulation is recognized as a collection of particles, surface tension, which is an interaction force between particles on the basis of variation, is calculated using a predetermined approximation function, and the shape change in the fluid is simulated by using the calculated surface tension.

First Embodiment

FIG. 8 is a diagram for explaining surface tension coefficients.

In general, the surface energy of a fluid can be defined as follows: E _(s)=

Γ_(g) χdS+

Γ _(s)(1−χ)dS.  [Formula 4]

The above surface energy is calculated by discretizing it by a particle method, and the surface tension applied to fluid particles can be determined by a first variation.

Here, the domain of integration of the right side of the above [Formula 4] is the whole area of the boundary surface of the fluid, and

χ

is 1 in a portion where the fluid is in contact with the air, and is zero in a portion other than this portion.

Γ_(g),Γ_(s)

are the surface tension coefficient of the portion in contact with the air, and the surface tension coefficient of a portion in contact with a solid, respectively, as illustrated in FIG. 8.

FIG. 9 is a diagram illustrating a configuration example of a simulation device to which the present invention is applied.

In FIG. 9, the simulation device 900 includes a processing unit 901, a storage unit 902, and an output unit 903. The simulation device 900 performs numerical calculation on the basis of the particle method expressing the continuum of a fluid or the like as a collection of particles using an approximation function described hereinafter, to calculate the surface tension. The shape change in the continuum is calculated using the calculation result, and the simulation result 912 is output.

The storage unit 902 stores information of each calculation formula used when executing the simulation program to which the present invention is applied.

The processing unit 901 executes simulation processing to which the present invention is applied, the simulation processing being described hereinafter as the first and second embodiments.

The output unit 903 outputs the simulation result 912 executed by the processing unit 901.

First, a method for calculating the surface tension using the approximation function will be described.

Integration of the above [Formula 4] is defined as the approximation function of the following [Formula 5].

${E_{s,{p\; 1}}\left( {r_{1},r_{2},\ldots\mspace{14mu},r_{n}} \right)} = {\sum\limits_{i}\;{{Q\left( \frac{m_{i}}{\rho_{i}} \right)}^{1 - \frac{1}{d}}\left( {{\left( {\Gamma_{g} - \Gamma_{s}} \right){\mathcal{X}\left( {l_{i},ɛ} \right)}} + \Gamma_{s}} \right)\left\langle s \right\rangle_{i}}}$ wherein, Q is a constant and is determined so as to match the oscillating period of a surface-tension wave. d is the dimension(s) of a space, Γ_(g),Γ_(s) are surface tension when the liquid is in contact with the air, and surface tension when the liquid is in contact with a solid, respectively. f_(i) is a function determined on the basis of the position of a particle, and

$\left\langle s \right\rangle_{i} = {\sum\limits_{j}{\frac{m_{j}}{\rho_{j}}{f\left( {{1 - s_{j}},{1 - s_{\min,j}}} \right)}{W\left( {{{r_{i} - r_{j}}},h} \right)}}}$ ${s_{i} = {\sum\limits_{j}{\frac{m_{j}}{\rho_{j}}{W\left( {{{r_{i} - r_{j}}},h} \right)}}}},{s_{\min,i} = {\frac{m_{i}}{\rho_{i}}{W\left( {0,h} \right)}}}$ ${f\left( {x,h} \right)} = \left\{ \begin{matrix} 1 & {\frac{x}{h} \geq 1} \\ {{3\left( \frac{x}{h} \right)^{2}} - {2\left( \frac{x}{h} \right)^{3}}} & {0 \leq \frac{x}{h} < 1} \\ 0 & {\frac{x}{h} < 0} \end{matrix} \right.$

FIG. 10 is a diagram for explaining the function smoothly approximating surface energy χ with width ε.

In Formula 5,

χ(l,ε)

is a function smoothly approximating

χ

in Formula 4

with the width

ε

as illustrated in FIG. 10, and

l_(i)

is a distance between the particle i and the solid boundary.

$\left( \frac{m_{j}}{\rho_{j}} \right)^{1 - \frac{1}{d}}$ has the dimension(s) of the area, and in the SPH method, S_(i) becomes close to 1 in the particle inside the fluid, becomes smaller near the surface, and if there are no particles within an influence radius h, becomes S_(min,i).

The approximation function defined as [Formula 5] sums the quantity having the same dimension(s) as the length of the particle on the fluid surface, and is considered to be approximating the surface integration of [Formula 4].

The gradient of the surface energy discretized by the particle method is calculated in [Formula 5], and the net surface tension acting on each particle is derived as follows:

$\begin{matrix} {f_{k,{s\; 1}} = {{{- \frac{\partial}{\partial r_{k}}}{E_{s,{p\; 1}}\left( {r_{1},r_{2},\ldots\mspace{14mu},r_{n}} \right)}} \approx {{Q{\sum\limits_{j}{\left\lbrack {{\left( {\Gamma_{g} - \Gamma_{s}} \right)\left( {{\frac{m_{k}}{\rho_{k}}\left( \frac{m_{j}}{\rho_{j}} \right)^{1 - \frac{1}{d}}f_{k}\chi_{j}} + {\frac{m_{j}}{\rho_{j}}\left( \frac{m_{k}}{\rho_{k}} \right)^{1 - \frac{1}{d}}f_{j}\chi_{k}}} \right)} + {\Gamma_{s}\left( {{\frac{m_{k}}{\rho_{k}}\left( \frac{m_{j}}{\rho_{j}} \right)^{1 - \frac{1}{d}}f_{k}} + {\frac{m_{j}}{\rho_{j}}\left( \frac{m_{k}}{\rho_{k}} \right)^{1 - \frac{1}{d}}f_{j}}} \right)}} \right\rbrack\frac{\partial{W\left( {{{r_{k} - r_{j}}},h} \right)}}{\partial r_{k}}}}} - {{Q\left( {\Gamma_{g} - \Gamma_{s}} \right)}{\sum\limits_{j}{\frac{m_{j}}{\rho_{j}}\left( \frac{m_{k}}{\rho_{k}} \right)^{1 - \frac{1}{d}}f_{j}\frac{\partial\chi_{k}}{\partial r_{k}}{W\left( {{r_{k} - r_{j}}} \right)}}}}}}} & \left\lbrack {{Formula}\mspace{14mu} 6} \right\rbrack \end{matrix}$

The calculation of the surface tension using the approximation function was described hereinbefore.

Next, calculation of the shape change in the fluid will be described using the surface tension calculated in the abovementioned manner.

FIG. 11 is a diagram illustrating an example of a two-dimensional fluid, with the y-axis set in the vertical direction from a plain surface which is a wall surface, and the x-axis set along the wall surface.

An equation of motion of an incompressible viscous fluid in a fluid 112 placed on the plane surface of a solid 111 in a situation like FIG. 11, that is, y=0, will be discussed.

In

$\begin{matrix} {{\frac{D\;\rho}{Dt} = {{- \rho}\;{\nabla{\cdot v}}}},} & \left\lbrack {{Formula}\mspace{14mu} 7} \right\rbrack \\ {{{\rho\frac{Dv}{Dt}} = {{- {\nabla\rho}}\; + {\nabla{\cdot \Pi}} - {g\;\hat{y}}}},} & \left\lbrack {{Formula}\mspace{14mu} 8} \right\rbrack \\ {{p = {c^{2}\left( {\rho - \rho_{0}} \right)}},} & \left\lbrack {{Formula}\mspace{14mu} 9} \right\rbrack \end{matrix}$ [Formula 7], [Formula 8], and [Formula 9] are the law of conservation of mass, the law of conservation of momentum, and a state equation, respectively. ρ(r,t),v(r,t),p(r,t),c  [Formula 10] are the density field, velocity field, pressure field, and sonic velocity of the fluid 112, respectively. Π is a viscous stress tensor, and if the viscous coefficient of the fluid 112 is set as μ (a constant),

$\Pi = {\frac{\mu}{2}{\left( {{\nabla v} + {\nabla v^{T}}} \right).}}$

[Formula 7] expresses the effect of increasing a density in a velocity field in which the fluid 112 gathers, and expresses in contrast the effect of decreasing a density in a velocity field in which the fluid 112 separates. A first term on the right side of [Formula 8] is a pressure gradient term and expresses the effect that force is generated from a portion in which pressure is strong toward a portion in which pressure is weak in the fluid 112. A second term on the right side is a viscous stress term and expresses the effect of slowing down the flow of the fluid. A third term on the right side is a gravity term.

g

is gravity acceleration,

y

is a unit vector in the y direction.

In the first embodiment, the relation of only density and pressure such as in [Formula 9] is used. However, a general state equation using temperature, internal energy, entropy, and the like may be used.

In addition, to the portion in contact with the air, a surface tension coefficient (constant) of

Γ_(g)

is considered to be applied, and to the portion in contact with the solid 111, a surface tension coefficient (constant) of

Γ_(s)

is considered to be applied.

Then, [Formulas 7-9] are discretized as follows using the SPH method, and the abovementioned surface tension terms are introduced.

${r_{i}^{*} = {r_{i}^{n} + {\frac{d\; t}{2}v_{i}^{n}}}},$ Here, an x component and y component of r_(i)* calculated in [Formula 10] are set as x_(i)*, y_(i)* respectively, and the component of an i-th velocity is set as v_(i,x) ^(n), v_(i,y) ^(n) to perform the following calculation.

$\begin{matrix} {\mspace{79mu}{{\overset{\_}{r}}_{i}^{*} = \left\{ {\begin{matrix} r_{i}^{n} & {y_{i}^{*} > 0} \\ {r_{i}^{n} - {\frac{y_{i}^{*}}{v_{i,y}^{n}}v_{i}^{n}}} & {y_{i}^{*} \leq 0} \end{matrix},\mspace{79mu}{{\overset{\_}{v}}_{i}^{n} = \left\{ \begin{matrix} v_{i}^{n} & {y_{i}^{*} > 0} \\ {\left( {1 - \frac{y_{i}^{*}}{{dtv}_{i,y}^{n}}} \right)v_{i}^{n}} & {y_{i}^{*} \leq 0} \end{matrix} \right.}} \right.}} & \left\lbrack {{Formula}\mspace{14mu} 11} \right\rbrack \\ {{v_{i}^{*{,{n + 1}}} = {{\overset{\_}{v}}_{i}^{n} - {2{{dt}\left\lbrack {\sum\limits_{j}{{m_{j}\left( \frac{p_{ij}^{n + {1/2}}}{\rho_{i}^{n}\rho_{j}^{n}} \right)}\left( \frac{{L\left( {\overset{\_}{r}}_{i}^{*} \right)} + {L\left( {\overset{\_}{r}}_{i}^{*} \right)}}{2} \right)\frac{\partial{W\left( {{{{\overset{\_}{r}}_{i}^{*} - r_{j}^{*}}},h} \right)}}{\partial r_{i}^{*}}}} \right\rbrack}} - {\frac{1}{2}{\sum\limits_{j}{{m_{j}\left( {\frac{4{\mu\xi}}{\rho_{i}\rho_{j}}\frac{\left( {{\overset{\_}{v}}_{i}^{n} - {\overset{\_}{v}}_{j}^{n}} \right) \cdot \left( {{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}} \right)}{{{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}}^{2} + \eta^{2}}} \right)}v_{ij}^{i}\frac{\partial{W\left( {{{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}},h} \right)}}{\partial{\overset{\_}{r}}_{i}^{*}}}}} - {g\hat{y}} + \frac{f_{ij}}{m_{i}} + \frac{f_{i,{s\; 1}}}{m_{i}}}},} & \left\lbrack {{Formula}\mspace{14mu} 12} \right\rbrack \\ {\mspace{79mu}{r_{i}^{*{,{n + 1}}} = {{\overset{\_}{r}}_{i}^{*} + {\frac{dt}{2}v_{i}^{*{,{n + 1}}}}}}} & \left\lbrack {{Formula}\mspace{14mu} 13} \right\rbrack \\ {\mspace{79mu}{r_{i}^{n + 1} = \left\{ {\begin{matrix} r_{i}^{*{,{n + 1}}} & {y_{i}^{*{,{n + 1}}} > 0} \\ {r_{i}^{*{,{n + 1}}} - {\frac{y_{i}^{*{,{n + 1}}}}{v_{i,y}^{*{,{n + 1}}}}v_{i}^{*{,{n + 1}}}}} & {y_{i}^{*{,{n + 1}}} \leq 0} \end{matrix},\mspace{79mu}{v_{i}^{n + 1} = \left\{ \begin{matrix} v_{i}^{*{,{n + 1}}} & {y_{i}^{*{,{n + 1}}} > 0} \\ {\left( {1 - \frac{y_{i}^{*{,{n + 1}}}}{{dtv}_{i,y}^{*{,{n + 1}}}}} \right)v_{i}^{*{,{n + 1}}}} & {y_{i}^{*{,{n + 1}}} \leq 0} \end{matrix} \right.}} \right.}} & \left\lbrack {{Formula}\mspace{14mu} 14} \right\rbrack \\ {{\rho_{i}^{n + 1} = {\rho_{i}^{n} + {2{dt}{\sum\limits_{j}{\frac{m_{j}\rho_{i}^{n}}{\rho_{j}^{n}}\left( {\frac{v_{i}^{s,{n + 1}} + {\overset{\_}{v}}_{i}^{s,n}}{2} - v_{ij}^{s,{n + {1/2}}}} \right)\frac{\partial}{\partial\left( {{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}} \right)}{W\left( {{{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}},h} \right)}}}}}},} & \left\lbrack {{Formula}\mspace{14mu} 15} \right\rbrack \end{matrix}$ wherein a subscript expresses the number of the particle; that is, the position vector, velocity vector, density, and pressure of the i-th particle are r_(i), v_(i), ρ_(i), p_(i) respectively. m_(j) is the mass of the j-th particle. ξ, η are constants introduced to calculate a viscous term.

[Formula 12] discretizes the equation of motion of [Formula 8] by the particle method, a second term on the right side expresses a pressure gradient term, and a third term on the right side expresses a viscous stress term. A fifth term on the right side of [Formula 12] is a force for preventing the distance between particles from becoming too close, and if

r_(min)

is a constant,

$f_{ij} = {\frac{8}{r_{\min}^{2}}\left( {1 - \left( \frac{{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}}{r_{\min}} \right)^{2}} \right)^{3}\frac{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}{{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}}}$

A sixth term on the right side,

f_(i,s1)

is a force generated by the abovementioned surface tension and [Formula 6] is applied thereto; however in the abovementioned simulation case, since the plain surface of y=0 is the wall surface of the solid 111,

χ_(i)=χ_(i)( y _(i)*,ε)

FIG. 12 is a diagram for explaining the state in which the particle collides against the wall surface.

The abovementioned [Formula 12] and [Formula 14] express a practical correction in which the particle stops at the moment when it collides against the wall surface as illustrated in the lower part of FIG. 12 instead of going through the wall surface as it is as illustrated in the upper part of FIG. 12 when the position of the particle is moved and the particle is going through the wall surface positioned on the plain surface of y=0.

Here,

L( r _(i)*)

is a renormalization matrix of

${L\left( r_{i} \right)} = {\left\lbrack {\sum\limits_{j}{\frac{m_{j}}{\rho_{j}}{\left( {r_{j} - r_{i}} \right) \otimes \frac{\partial}{\partial r_{i}}}{W\left( {{{r_{i} - r_{j}}},h} \right)}}} \right\rbrack^{- 1}.}$ And in addition,

${{\overset{\_}{n}}_{ij}^{*} = {{\left( \frac{{L\left( {\overset{\_}{r}}_{i}^{*} \right)} + {L\left( {\overset{\_}{r}}_{i}^{*} \right)}}{2} \right){\frac{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}{{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}}.v_{i}^{s,n}}} = {{\overset{\_}{v}}_{i}^{n} \cdot {\overset{\_}{n}}_{ij}^{*}}}},{v_{j}^{s,n} = {{\overset{\_}{v}}_{j}^{n} \cdot {\overset{\_}{n}}_{ij}^{*}}}$ p_(ij)^(n + 1/2), v_(ij)^(s, n + 1/2) are intermediate values of space-time determined by solving the one-dimensional Riemann problem between the particles i and j. Specifically, the values are determined as follows.

First, the following characteristic quantities are set with respect to the particles i and j.

$\begin{matrix} {q_{i}^{n, +} = {{\log\left( \rho_{i}^{n} \right)} + \frac{v_{i}^{s,n}}{c}}} & \left\lbrack {{Formula}\mspace{14mu} 16} \right\rbrack \\ {q_{i}^{n, -} = {{\log\left( \rho_{i}^{n} \right)} - \frac{v_{i}^{s,n}}{c}}} & \left\lbrack {{Formula}\mspace{14mu} 17} \right\rbrack \\ {q_{j}^{n, +} = {{\log\left( \rho_{j}^{n} \right)} + \frac{v_{j}^{s,n}}{c}}} & \left\lbrack {{Formula}\mspace{14mu} 18} \right\rbrack \\ {q_{j}^{n, -} = {{\log\left( \rho_{j}^{n} \right)} - \frac{v_{j}^{s,n}}{c}}} & \left\lbrack {{Formula}\mspace{14mu} 19} \right\rbrack \end{matrix}$

In addition, each gradient is calculated as follows:

$\begin{matrix} {\left. {\nabla{\log(\rho)}} \right|_{i} = {\sum\limits_{k}{\frac{m_{k}}{\rho_{i}}\left( {{\log\left( \rho_{k}^{n} \right)} - {\log\left( \rho_{i}^{n} \right)}} \right){L\left( {\overset{\_}{r}}_{i}^{*} \right)}\frac{\partial{W\left( {{{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{k}^{*}}},h} \right)}}{\partial{\overset{\_}{r}}_{i}^{*}}}}} & \left\lbrack {{Formula}\mspace{14mu} 20} \right\rbrack \\ {\mspace{79mu}{\left. {\nabla v} \right|_{i} = {\sum\limits_{k}{\frac{m_{k}}{\rho_{i}}{L\left( {\overset{\_}{r}}_{i}^{*} \right)}{\frac{\partial{W\left( {{{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{k}^{*}}},h} \right)}}{\partial{\overset{\_}{r}}_{i}^{*}} \otimes \left( {{\overset{\_}{v}}_{k}^{n} - {\overset{\_}{v}}_{i}^{n}} \right)}}}}} & \left\lbrack {{Formula}\mspace{14mu} 21} \right\rbrack \\ {\mspace{79mu}{{{\nabla q}|_{i}^{n, +}} = \left. {\nabla{\log(\rho)}} \middle| {}_{i}{+ \frac{\left. {\nabla v} \middle| {}_{i}{\overset{\_}{n}}_{ij}^{*} \right.}{c}} \right.}} & \left\lbrack {{Formula}\mspace{14mu} 22} \right\rbrack \\ {\mspace{79mu}{{{\nabla q}|_{j}^{n, +}} = \left. {\nabla{\log(\rho)}} \middle| {}_{j}{+ \frac{\left. {\nabla v} \middle| {}_{j}{\overset{\_}{n}}_{ij}^{*} \right.}{c}} \right.}} & \left\lbrack {{Formula}\mspace{14mu} 23} \right\rbrack \\ {\mspace{79mu}{{{\nabla q}|_{i}^{n, -}} = \left. {\nabla{\log(\rho)}} \middle| {}_{i}{- \frac{\left. {\nabla v} \middle| {}_{i}{\overset{\_}{n}}_{ij}^{*} \right.}{c}} \right.}} & \left\lbrack {{Formula}\mspace{14mu} 24} \right\rbrack \\ {\mspace{79mu}{{{\nabla q}|_{j}^{n, -}} = \left. {\nabla{\log(\rho)}} \middle| {}_{j}{- \frac{\left. {\nabla v} \middle| {}_{j}{\overset{\_}{n}}_{ij}^{*} \right.}{c}} \right.}} & \left\lbrack {{Formula}\mspace{14mu} 25} \right\rbrack \end{matrix}$ wherein, r _(ij)*= r _(i)*− r _(j)* r_(ij)*=| r _(ij)*| and using the above quantities, p_(ij) ^(n+1/2), v_(ij) ^(s,n+1/2) are determined as follows:

$\begin{matrix} {q_{ij}^{{n + {1/2}}, +} = {q_{j}^{n, +} + {\left( {\frac{{\overset{\_}{r}}_{ij}^{*}}{2} - \frac{cdt}{2}} \right)\left( {{{\overset{\_}{r}}_{ij}^{*} \cdot {\nabla q}}|_{j}^{n, +}} \right)}}} & \left\lbrack {{Formula}\mspace{14mu} 26} \right\rbrack \\ {q_{ij}^{{n + {1/2}}, -} = {q_{i}^{n, +} - {\left( {\frac{{\overset{\_}{r}}_{ij}^{*}}{2} + \frac{cdt}{2}} \right)\left( {{{\overset{\_}{r}}_{ij}^{*} \cdot {\nabla q}}|_{i}^{n, -}} \right)}}} & \left\lbrack {{Formula}\mspace{14mu} 27} \right\rbrack \\ {\rho_{ij}^{n + {1/2}} = {\exp\left( \frac{q_{ij}^{{n + {1/2}}, +} + q_{ij}^{{n + {1/2}}, -}}{2} \right)}} & \left\lbrack {{Formula}\mspace{14mu} 28} \right\rbrack \\ {v_{ij}^{n + {1/2}} = {c\left( \frac{q_{ij}^{{n + {1/2}}, +} - q_{ij}^{{n + {1/2}}, -}}{2} \right)}} & \left\lbrack {{Formula}\mspace{14mu} 29} \right\rbrack \\ {p_{ij}^{n + {1/2}} = {{c^{2}\left( {\rho_{ij}^{n + {1/2}} + \rho_{0}} \right)}.}} & \left\lbrack {{Formula}\mspace{14mu} 30} \right\rbrack \end{matrix}$

FIG. 13 is a flowchart illustrating the flow of simulation processing to which the present invention is applied.

First, in step S1301, the position vector and velocity vector of each particle is obtained as data of the physical quantity of the fluid of a simulation target. In step S1302, by using the abovementioned [Formula 9] the position of the particle is updated to the position after time dt/2 passes using the current velocity.

Then, in classification of cases on the basis of the value of y in [Formula 11], if the result is y<0, that is, if it is determined that the particle goes through the wall surface (step S1303: Yes), in step S1304, the position and velocity of the particle is corrected so that the particle does not go through the wall surface, that is, y≧0, using the abovementioned [Formula 11].

On the other hand, in classification of cases on the basis of the value of y in [Formula 11], if the result is y≧0, that is, if it is determined that the particle does not go through the wall surface (step S1303: No), the position and velocity of the particle are not corrected.

Next, in step S1305, a force applied to the fluid particle is calculated on the basis of a physics model by calculating the second to fifth terms on the right side of the abovementioned [Formula 12].

In step S1306, the surface tension related to each fluid particle is calculated by calculating the sixth term on the right side of the abovementioned [Formula 12].

When the calculation of the surface tension on each boundary particle is finished, the velocity of the fluid particle is updated in step S1307.

Next, in step 1308, the position of the fluid particle is updated to the position after time dt/2 passes using the velocity updated in step S1307, using the abovementioned [Formula 13].

Then, in classification of cases on the basis of the value of y in [Formula 14], if the result is y<0, that is, if it is determined that the particle goes through the wall surface (step S1309: Yes), in step 1310, the position and velocity of the particle is corrected so that the particle does not go through the wall surface, that is, y≧0, using the abovementioned [Formula 14].

On the other hand, in classification of cases on the basis of the value of y in [Formula 14], if the result is y≧0, that is, if it is determined that the particle does not go through the wall surface (step S1303: No), the position and velocity of the particle are not corrected.

Thereafter, in step S1311, the velocity of the fluid particle is updated, and the above steps S1302 to S1311 are repeatedly executed.

If the simulation processing hereinbefore described is executed, the shape of the fluid becomes as illustrated in FIGS. 14-18.

FIGS. 14-18 are diagrams illustrating the temporal change in the result of using the simulation processing to which the present invention is applied, with respect to the shape of the fluid. The calculation conditions are the same as those in the calculation by the conventional technique in FIGS. 3-7.

As illustrated in FIG. 14, the initial shape of a fluid 141 is a square of 0.05 [m]×0.05 [m]. The respective initial conditions are set as:

Γ_(g)=Γ_(s)=10

[N/m²],

ρ₀=1000

[kg/m³],

h=0.0046875

[m],

c=109.8

[m/s],

dt=1.423×10⁻⁶

[s],

Q=4,

viscosity

μ

is 0.001 [m²/S], gravity acceleration

g=9.8

[m/s²],

ξ=4.9633

r_(min)=0.00104

[m].

The particles in the initial state are positioned in a uniform grid pattern (33 particles per side, for a total of 1,089 particles), and the velocity of all particles is zero and the density is 1,000 [kg/m³].

As for the calculation results, the distribution of the fluid 141 is in a smooth circular shape as in FIG. 4 at time 0.04 [s], and as illustrated in FIG. 16, the fluid 141 collides against the wall at time 0.14 [s] and greatly deforms.

As illustrated in FIG. 17, the shape of the fluid 141 is not lost at time 0.7[s], in contrast to the calculation result of the conventional technique illustrated in FIG. 6, and the velocity distribution is stable and the steady state is maintained as illustrated in FIG. 18.

Second Embodiment

In the second embodiment to which the present invention is applied, instead of approximating the integration of [Formula 4] like the approximation function of [Formula 5] in the abovementioned first embodiment, the integration of [Formula 4] is approximated like the approximation function of the following [Formula 31]. By replacing the pressure “p1” in the first embodiment with “p2”, the description in the first embodiment can be applied to the second embodiment.

$\begin{matrix} {{{E_{s,{p\; 2}}\left( {r_{1},r_{2},\ldots\mspace{14mu},r_{n}} \right)} = {\sum\limits_{i}{\frac{m_{i}}{\rho_{i}}\left( {{\left( {\Gamma_{g} - \Gamma_{s}} \right)\chi_{ɛ}} + \Gamma_{s}} \right){J\left( {{\left\langle {\nabla C_{i}} \right\rangle },a} \right)}}}}\mspace{79mu}{wherein}} & \left\lbrack {{Formula}\mspace{14mu} 31} \right\rbrack \\ {\mspace{79mu}{\left\langle {\nabla C} \right\rangle_{i} = {\sum\limits_{j}{\frac{m_{j}}{\rho_{j}}{L\left( r_{i} \right)}\frac{\partial{W\left( {{{r_{i} - r_{j}}},h} \right)}}{\partial r_{i}}}}}} & \left\lbrack {{Formula}\mspace{14mu} 32} \right\rbrack \\ {\mspace{79mu}{{L\left( r_{i} \right)} = \left\lbrack {\sum\limits_{j}{\frac{m_{j}}{\rho_{j}}{L\left( {r_{j} - {{r_{i} \otimes \frac{\partial}{\partial r_{i}}}{W\left( {{{r_{i} - r_{j}}},h} \right)}}} \right)}}} \right\rbrack^{- 1}}} & \left\lbrack {{Formula}\mspace{14mu} 33} \right\rbrack \\ {\mspace{79mu}{{J\left( {{\left\langle {\nabla C_{i}} \right\rangle },a} \right)}{{{\left\langle {\nabla C_{i}} \right\rangle } - {a\left( {{\exp\left( \frac{- 1}{a} \right)} - {\exp\left( \frac{\left\langle {\nabla C_{i}} \right\rangle }{a} \right)}} \right)}}}}} & \left\lbrack {{Formula}\mspace{14mu} 34} \right\rbrack \end{matrix}$

∇C

_(i) has the same dimension(s) as that of the area, so it is considered that [Formula 6] approximates the surface energy. L_(i) is a re-standardization matrix, and corrects gradient calculation in the non-uniform distribution of the particles.

FIG. 19 is a diagram illustrating the effect of the approximation function in the second embodiment.

In the above [Formula 31],

J(|x|, a)

192 is an approximation function smoothing

|x|

191 near the origin, and

the minimum is almost the same as

a

that is, “0.1”.

The net force applied to the particle k is derived as follows on the basis of the energy of [Formula 6].

$\begin{matrix} {f_{k,{s\; 2}} = \begin{pmatrix} \begin{matrix} \frac{\begin{matrix} {{E_{s,{p\; 2}}\left( {r_{1},r_{2},\ldots\mspace{14mu},{r_{k} + {\delta\;\hat{x}}},\ldots\mspace{14mu},r_{n}} \right)} -} \\ {E_{s,{p\; 2}}\left( {r_{1},r_{2},\ldots\mspace{14mu},{r_{k} - {\delta\;\hat{x}}},\ldots\mspace{14mu},r_{n}} \right)} \end{matrix}}{2\delta} \\ \frac{\begin{matrix} {{E_{s,{p\; 2}}\left( {r_{1},r_{2},\ldots\mspace{14mu},{r_{k} + {\delta\;\hat{y}}},\ldots\mspace{14mu},r_{n}} \right)} -} \\ {E_{s,{p\; 2}}\left( {r_{1},r_{2},\ldots\mspace{14mu},{r_{k} - {\delta\;\hat{y}}},\ldots\mspace{14mu},r_{n}} \right)} \end{matrix}}{2\delta} \end{matrix} \\ \frac{\begin{matrix} {{E_{s,{p\; 2}}\left( {r_{1},r_{2},\ldots\mspace{14mu},{r_{k} + {\delta\;\hat{z}}},\ldots\mspace{14mu},r_{n}} \right)} -} \\ {E_{s,{p\; 2}}\left( {r_{1},r_{2},\ldots\mspace{14mu},{r_{k} - {\delta\;\hat{z}}},\ldots\mspace{14mu},r_{n}} \right)} \end{matrix}}{2\delta} \end{pmatrix}} & \left\lbrack {{Formula}\mspace{14mu} 35} \right\rbrack \end{matrix}$ {circumflex over (x)},ŷ,{circumflex over (z)} are unit vectors of x, y, z directions, respectively.

As mentioned above, the present invention can be applied to the calculation of the particle method and of fluid motion in which surface tension is effective. In particular, it is effective for simulation of casting molten metal, simulation of casting resin, or the like. In addition, there is no need to configure settings to place particles on a wall surface or the like in a conventional technique, when simulating the shape change in the fluid which collides against a solid such as the wall surface or the like.

The simulation device in FIG. 9 can be materialized by using an information processing device (computer) illustrated in FIG. 20. The information processing device in FIG. 20 includes a CPU (Central Processing Unit) 2001, a memory 2002, an input device 2003, an output device 2004, an external storage device 2005, a medium drive device 2006, and a network connection device 2007. These are connected with each other through a bus 2008.

The memory 2002 is a storage device such as a ROM (Read Only Memory), RAM (Random Access Memory), flash memory or the like, and stores a program and data used for simulation processing. For example, the CPU 2001 executes the abovementioned simulation processing by executing the program using the memory 2002. The memory 2002 can also be used as the storage unit 902 in FIG. 9.

The input device 2003 is, for example, a keyboard, or a pointing device or the like, and is used for inputting an instruction from an operator or information. The output device 2004 is, for example, a display device, printer, speaker or the like, and is used for an inquiry to the operator or for output of the processing result. The output device 2004 can also be used as the output unit 903 in FIG. 9.

The external storage device 2005 is, for example, a magnetic disk device, an optical disk device, a magneto optical disk device, a tape device, or the like. A hard disk drive is included in this external storage device 2005. The information processing device stores the program and data in the external storage device 2005, and can use them by loading them into the memory 2002.

The medium drive device 2006 drives a portable recording medium 2009 to access its recorded content. The portable recording medium 2009 is a memory device, flexible disk, optical disk, magneto optical disk, or the like. A Computer Disk Read Only Memory (CD-ROM), Digital Versatile Disk (DVD), Universal Serial Bus (USB) memory and the like are included in the portable recording medium 2009. The operator can use the program and data by loading them into the memory 2002, by storing the program and data in the portable recording medium 2009.

Thus, physical (non-transitory) recording media such as the memory 2002, the external storage device 2005, and the portable recording medium 2009 are included in computer readable recording media configured to store the program and data used in the simulation processing.

The network connection device 2007 is connected to a communication network 2010, and is a communication interface executing data conversion accompanying communication. The information processing device receives the program and data from the external device via the network connection device 2007, and can use them by loading them into the memory 2002. The network connection device 2007 can also be used as the output unit 903 in FIG. 9.

The disclosed embodiments and their advantages have been described in detail; however, those skilled in the art will recognize that various modifications, additions, and omissions can be made without departing from the scope of the present invention explicitly described in the following claims.

For example, instead of the approximation function defined as [Formula 5] or [Formula 31], an appropriate approximation function can be used.

The present invention is not limited to the embodiments described above, and a wide variety of configurations or shapes can be taken within the scope not departing from the gist of the present invention.

The disclosed simulation program, simulation method, and simulation device have an effect of outputting an appropriate simulation result without expressing behaviors such as generating an unnatural velocity distribution, with respect to a fluid which is a simulation target.

All examples and conditional language provided herein are intended for the pedagogical purposes of aiding the reader in understanding the invention and the concepts contributed by the inventor to further the art, and are not to be construed as limitations to such specifically recited examples and conditions, nor does the organization of such examples in the specification relate to a showing of the superiority and inferiority of the invention. Although one or more embodiments of the present invention have been described in detail, it should be understood that the various changes, substitutions, and alterations could be made hereto without departing from the spirit and scope of the invention. 

What is claimed is:
 1. A non-transitory computer-readable recording medium having stored therein a simulation program for causing a computer to execute a process for suppressing behaviors including generating an unnatural velocity distribution when simulating a temporal shape change in a fluid, the process comprising: obtaining a position vector and a velocity vector of a particle forming the fluid from a storage unit; calculating, with respect to a fluid model representing the fluid as a collection of particles, a force applied to each particle and a surface tension applied to each particle using the obtained position vector and velocity vector; adding the calculated force applied to each particle and surface tension applied to each particle to the velocity vector so as to update a velocity of each particle; calculating a shape change in the fluid using the updated velocity of each particle; and outputting the calculated shape change to an output unit, wherein                                      [Formula  12] ${v_{i}^{\;^{*},{n + 1}} = {{\overset{\_}{v}}_{i}^{n} - {2{\mathbb{d}{t\left\lbrack {\sum\limits_{j}{{m_{j}\left( \frac{p_{ij}^{n + {1/2}}}{\rho_{i}^{n}\rho_{j}^{n}} \right)}\left( \frac{{L\left( {\overset{\_}{r}}_{i}^{*} \right)} + {L\left( {\overset{\_}{r}}_{i}^{*} \right)}}{2} \right)\frac{\partial{W\left( {{{{\overset{\_}{r}}_{i}^{*} - r_{j}^{*}}},h} \right)}}{\partial r_{i}^{*}}}} \right)}}} - {\frac{1}{2}{\sum\limits_{j}{{m_{j}\left( {\frac{4{\mu\xi}}{\rho_{i}\rho_{j}}\frac{\left( {{\overset{\_}{v}}_{i}^{n} - {\overset{\_}{v}}_{j}^{n}} \right) \cdot \left( {{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}} \right)}{{{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}}^{2} + \eta^{2}}} \right)}v_{ij}^{i}\frac{\partial{W\left( {{{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}},h} \right)}}{\partial{\overset{\_}{r}}_{i}^{*}}}}} - {g\hat{y}} + \frac{f_{ij}}{m_{i}} + \frac{f_{i,{s\; 1}}}{m_{i}}}},$ is used when updating the velocity of each particle, [Formula 12] including a second term on the right side expressing a pressure gradient term, a third term on the right side expressing a viscous stress term, a fourth term on the right side expressing a gravity term, and a fifth term on the right side which is a force for preventing the distance between particles from becoming too close, to calculate the force applied to each particle, as well as a sixth term on the right side which is a surface tension, and followed by the following calculation: $\begin{matrix} {\mspace{79mu}{r_{i}^{\;^{*},{n + 1}} = {{\overset{\_}{r}}_{i}^{*} + {\frac{\mathbb{d}t}{2}v_{i}^{\;^{*},{n + 1}}}}}} & \left\lbrack {{Formula}\mspace{14mu} 13} \right\rbrack \\ {\mspace{79mu}{r_{i}^{n + 1} = \left\{ {\begin{matrix} r_{i}^{\;^{*},{n + 1}} & {y^{\;_{i}^{*{,{n + 1}}}} > 0} \\ {r_{i}^{\;^{*},{n + 1}} - {\frac{y_{i}^{\;^{*},{n + 1}}}{v_{i,y}^{\;^{*},{n + 1}}}v_{i}^{\;^{*},{n + 1}}}} & {y_{i}^{\;^{*},{n + 1}} \leq 0} \end{matrix},\mspace{79mu}{v_{i}^{n + 1} = \left\{ \begin{matrix} v_{i}^{\;^{*},{n + 1}} & {y^{\;_{i}^{*{,{n + 1}}}} > 0} \\ {\left( {1 - \frac{y_{i}^{\;^{*},{n + 1}}}{{dtv}_{i,y}^{\;^{*},{n + 1}}}} \right)v_{i}^{\;^{*},{n + 1}}} & {y_{i}^{\;^{*},{n + 1}} \leq 0} \end{matrix} \right.}} \right.}} & \left\lbrack {{Formula}\mspace{14mu} 14} \right\rbrack \\ {\rho_{i}^{n + 1} = {\rho_{i}^{n} + {2{dt}{\sum\limits_{j}{\frac{m_{j}\rho_{i}^{n}}{\rho_{j}^{n}}\left( {{\frac{v_{i}^{s,{n + 1}} + {\overset{\_}{v}}_{i}^{s,n}}{2} - {\left. \quad v_{ij}^{s,{n + {1/2}}} \right)\frac{\partial\;}{\partial\left( {{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}} \right)}{W\left( {{{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}},h} \right)}}},} \right.}}}}} & \left\lbrack {{Formula}\mspace{14mu} 15} \right\rbrack \end{matrix}$ wherein a subscript expresses the number of the particle, that is, r_(i), v_(i), ρ_(i), p_(i) represent the position vector, velocity vector, density, and pressure of the i-th particle respectively, m_(j) is the mass of the j-th particle, and ξ, η are constants introduced to calculate a viscous term, wherein $f_{ij} = {\frac{8}{r_{\min}^{2}}\left( {1 - \left( \frac{{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}}{r_{\min}} \right)^{2}} \right)\frac{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}{{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}}}$ (r_(min) is a constant), wherein                                       [Formula  6] $f_{k,{s\; 1}} = {{{- \frac{\partial\;}{\partial r_{k}}}{E_{s,{p\; 1}}\left( {r_{1},r_{2},\ldots\mspace{14mu},r_{n}} \right)}} \approx {{Q{\sum\limits_{j}{\left\lbrack {{\left( {\Gamma_{g} - \Gamma_{s}} \right)\left( {{\frac{m_{k}}{\rho_{k}}\left( \frac{m_{j}}{\rho_{j}} \right)^{1 - \frac{1}{d}}f_{k}\chi_{j}} + {\frac{m_{j}}{\rho_{j}}\left( \frac{m_{k}}{\rho_{k}} \right)^{1 - \frac{1}{d}}f_{j}\chi_{k}}} \right)} + {\Gamma_{s}\left( {{\frac{m_{k}}{\rho_{k}}\left( \frac{m_{j}}{\rho_{j}} \right)^{1 - \frac{1}{d}}f_{k}} + {\frac{m_{j}}{\rho_{j}}\left( \frac{m_{k}}{\rho_{k}} \right)^{1 - \frac{1}{d}}f_{j}}} \right)}} \right\rbrack\frac{\partial{W\left( {{{r_{k} - r_{j}}},h} \right)}}{\partial r_{k}}}}} - {{Q\left( {\Gamma_{g} - \Gamma_{s}} \right)}{\sum\limits_{j}{\frac{m_{j}}{\rho_{j}}\left( \frac{m_{k}}{\rho_{k}} \right)^{1 - \frac{1}{d}}f_{j}\frac{\partial\chi_{k}}{\partial r_{k}}{W\left( {{r_{k} - r_{j}}} \right)}}}}}}$ is applied, and χ_(i)=χ_(i)( y _(i)*, ε) if a plain surface of y=0 is a wall surface of a solid, wherein g is gravity acceleration, y is a unit vector in the y direction, h expresses an influence radius which is a radius of a spherical area in which a value of a kernel function is non-zero, and W is an overlap of kernel functions used in the SPH method, wherein L( r _(i)*) is a renormalization matrix of ${{L\left( r_{i} \right)} = \left\lbrack {\sum\limits_{j}{\frac{m_{j}}{\rho_{j}}{\left( {r_{j} - r_{i}} \right) \otimes \frac{\partial\;}{\partial r_{i}}}{W\left( {{{r_{i} - r_{j}}},h} \right)}}} \right\rbrack^{- 1}},$ and if ${\overset{\_}{n}}_{ij}^{*} = {\left( \frac{{L\left( {\overset{\_}{r}}_{i}^{*} \right)} + {L\left( {\overset{\_}{r}}_{i}^{*} \right)}}{2} \right)^{3}\frac{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}{{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}}}$ v_(i) ^(s,n)= v _(i) ^(n)· n _(ij)* v_(j) ^(s,n)= v _(j) ^(n)· n _(ij)*, wherein p_(ij) ^(n+1/2),v_(ij) ^(s,n+1/2) are intermediate values of space-time determined by solving the one-dimensional Riemann problem between the particles i and j, the values being determined by a process including: first setting the following characteristic quantities with respect to the particles i and j: $\begin{matrix} {q_{i}^{n, +} = {{\log\left( \rho_{i}^{n} \right)} + \frac{v_{i}^{s,n}}{c}}} & \left\lbrack {{Formula}\mspace{14mu} 16} \right\rbrack \\ {q_{i}^{n, -} = {{\log\left( \rho_{i}^{n} \right)} - \frac{v_{i}^{s,n}}{c}}} & \left\lbrack {{Formula}\mspace{14mu} 17} \right\rbrack \\ {q_{j}^{n, +} = {{\log\left( \rho_{j}^{n} \right)} + \frac{v_{j}^{s,n}}{c}}} & \left\lbrack {{Formula}\mspace{14mu} 18} \right\rbrack \\ {{q_{j}^{n, -} = {{\log\left( \rho_{j}^{n} \right)} - \frac{v_{j}^{s,n}}{c}}};} & \left\lbrack {{Formula}\mspace{14mu} 19} \right\rbrack \end{matrix}$ and then calculating each gradient as follows: $\begin{matrix} {\left. {\nabla{\log(\rho)}} \right|_{i} = {\sum\limits_{k}{\frac{m_{k}}{\rho_{i}}\left( {{\log\left( \rho_{k}^{n} \right)} - {\log\left( \rho_{i}^{n} \right)}} \right){L\left( {\overset{\_}{r}}_{i}^{*} \right)}\frac{\partial{W\left( {{{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{k}^{*}}},h} \right)}}{\partial{\overset{\_}{r}}_{i}^{*}}}}} & \left\lbrack {{Formula}\mspace{14mu} 20} \right\rbrack \\ {\mspace{79mu}{\left. {\nabla v} \right|_{i} = {\sum\limits_{k}{\frac{m_{k}}{\rho_{k}}{L\left( {\overset{\_}{r}}_{i}^{*} \right)}{\frac{\partial{W\left( {{{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{k}^{*}}},h} \right)}}{\partial{\overset{\_}{r}}_{i}^{*}} \otimes \left( {{\overset{\_}{v}}_{k}^{n} - {\overset{\_}{v}}_{i}^{n}} \right)}}}}} & \left\lbrack {{Formula}\mspace{14mu} 21} \right\rbrack \\ {\mspace{79mu}{{{\nabla q}{_{i}^{n, +}{= {\nabla{\log(\rho)}}}}_{i}} + \frac{\left. {\nabla v} \middle| {}_{i}{\overset{\_}{n}}_{ij}^{*} \right.}{c}}} & \left\lbrack {{Formula}\mspace{14mu} 22} \right\rbrack \\ {\mspace{79mu}{{{\nabla q}{_{j}^{n, +}{= {\nabla{\log(\rho)}}}}_{j}} + \frac{\left. {\nabla v} \middle| {}_{j}{\overset{\_}{n}}_{ij}^{*} \right.}{c}}} & \left\lbrack {{Formula}\mspace{14mu} 23} \right\rbrack \\ {\mspace{79mu}{{{\nabla q}{_{i}^{n, -}{= {\nabla{\log(\rho)}}}}_{i}} + \frac{\left. {\nabla v} \middle| {}_{i}{\overset{\_}{n}}_{ij}^{*} \right.}{c}}} & \left\lbrack {{Formula}\mspace{14mu} 24} \right\rbrack \\ {\mspace{79mu}{{{{\nabla q}{_{j}^{n, -}{= {\nabla{\log(\rho)}}}}_{j}} - \frac{\left. {\nabla v} \middle| {}_{j}{\overset{\_}{n}}_{ij}^{*} \right.}{c}},}} & \left\lbrack {{Formula}\mspace{14mu} 25} \right\rbrack \end{matrix}$ and wherein r _(ij)*= r _(i)*− r _(j)*, r _(ij)*=| r _(ij)*| and using the above quantities, p_(ij) ^(n+1/2),v_(ij) ^(n+1/2) are determined as follows: $\begin{matrix} {q_{ij}^{{n + {1/2}}, +} = {q_{j}^{n, +} + {\left( {\frac{{\overset{\_}{r}}_{ij}^{*}}{2} - \frac{cdt}{2}} \right)\left( {{{\overset{\_}{r}}_{ij}^{*} \cdot {\nabla q}}|_{j}^{n, +}} \right)}}} & \left\lbrack {{Formula}\mspace{14mu} 26} \right\rbrack \\ {q_{ij}^{{n + {1/2}}, -} = {q_{i}^{n, +} - {\left( {\frac{{\overset{\_}{r}}_{ij}^{*}}{2} + \frac{cdt}{2}} \right)\left( {{{\overset{\_}{r}}_{ij}^{*} \cdot {\nabla q}}|_{j}^{n, -}} \right)}}} & \left\lbrack {{Formula}\mspace{14mu} 27} \right\rbrack \\ {\rho_{ij}^{n + {1/2}} = {\exp\left( \frac{q_{ij}^{{n + {1/2}}, +} + q_{ij}^{{n + {1/2}}, -}}{2} \right)}} & \left\lbrack {{Formula}\mspace{14mu} 28} \right\rbrack \\ {v_{ij}^{n + {1/2}} = {c\left( \frac{q_{ij}^{{n + {1/2}}, +} - q_{ij}^{{n + {1/2}}, -}}{2} \right)}} & \left\lbrack {{Formula}\mspace{14mu} 29} \right\rbrack \\ {p_{ij}^{n + {1/2}} = {{c^{2}\left( {\rho_{ij}^{n + {1/2}} + \rho_{0}} \right)}.}} & \left\lbrack {{Formula}\mspace{14mu} 30} \right\rbrack \end{matrix}$
 2. The non-transitory computer-readable recording medium according to claim 1, wherein the function is for calculating the sum of the result of the calculation of the surface energy of the interface with a phase of the air, and the result of the calculation of the surface energy of the interface with a phase of other than the phase of the air.
 3. The non-transitory computer-readable recording medium according to claim 1, wherein in the calculation of a shape change, the particle forming the fluid is stopped when the fluid collides against a wall surface.
 4. A simulation method for suppressing behaviors including generating an unnatural velocity distribution when simulating a temporal shape change in a fluid by using a processor, the simulation method comprising: obtaining a position vector and a velocity vector of a particle forming the fluid from a storage unit by using the processor; calculating, with respect to a fluid model representing the fluid as a collection of particles, a force applied to each particle and a surface tension applied to each particle using the obtained position vector and velocity vector by using the processor; adding the calculated force applied to each particle and surface tension applied to each particle to the velocity vector so as to update a velocity of each particle by using the processor; calculating a shape change in the fluid using the updated velocity of each particle by using the processor; and outputting the calculated shape change to an output unit by using the processor, wherein                                      [Formula  12] ${v_{i}^{\;^{*},{n + 1}} = {{\overset{\_}{v}}_{i}^{n} - {2{{dt}\left\lbrack {\sum\limits_{j}{{m_{j}\left( \frac{p_{ij}^{n + {1/2}}}{\rho_{i}^{n}\rho_{j}^{n}} \right)}\left( \frac{{L\left( {\overset{\_}{r}}_{i}^{*} \right)} + {L\left( {\overset{\_}{r}}_{i}^{*} \right)}}{2} \right)\frac{\partial{W\left( {{{{\overset{\_}{r}}_{i}^{*} - r_{j}^{*}}},h} \right)}}{\partial r_{i}^{*}}}} \right\rbrack}} - {\frac{1}{2}{\sum\limits_{j}{{m_{j}\left( {\frac{4{\mu\xi}}{\rho_{i}\rho_{j}}\frac{\left( {{\overset{\_}{v}}_{i}^{n} - {\overset{\_}{v}}_{j}^{n}} \right) \cdot \left( {{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}} \right)}{{{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}}^{2} + \eta^{2}}} \right)}v_{ij}^{i}\frac{\partial{W\left( {{{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}},h} \right)}}{\partial{\overset{\_}{r}}_{i}^{*}}}}} - {g\hat{y}} + \frac{f_{ij}}{m_{i}} + \frac{f_{i,{s\; 1}}}{m_{i}}}},$ is used when updating the velocity of each particle, [Formula 12] including a second term on the right side expressing a pressure gradient term, a third term on the right side expressing a viscous stress term, a fourth term on the right side expressing a gravity term, and a fifth term on the right side which is a force for preventing the distance between particles from becoming too close, to calculate the force applied to each particle, as well as a sixth term on the right side which is a surface tension, and followed by the following calculation: $\begin{matrix} {\mspace{79mu}{r_{i}^{\;^{*},{n + 1}} = {{\overset{\_}{r}}_{i}^{*} + {\frac{dt}{2}v_{i}^{\;^{*},{n + 1}}}}}} & \left\lbrack {{Formula}\mspace{14mu} 13} \right\rbrack \\ {\mspace{79mu}{r_{i}^{n + 1} = \left\{ {\begin{matrix} r_{i}^{\;^{*},{n + 1}} & {y_{i}^{\;^{*{,{n + 1}}}} > 0} \\ {r_{i}^{\;^{*},{n + 1}} - {\frac{y_{i}^{\;^{*},{n + 1}}}{v_{i,y}^{\;^{*},{n + 1}}}v_{i}^{\;^{*},{n + 1}}}} & {y_{i}^{\;^{*},{n + 1}} \leq 0} \end{matrix},\mspace{79mu}{v_{i}^{n + 1} = \left\{ \begin{matrix} v_{i}^{\;^{*},{n + 1}} & {y_{i}^{\;^{*{,{n + 1}}}} > 0} \\ {\left( {1 - \frac{y_{i}^{\;^{*},{n + 1}}}{{dtv}_{i,y}^{\;^{*},{n + 1}}}} \right)v_{i}^{\;^{*},{n + 1}}} & {y_{i}^{\;^{*},{n + 1}} \leq 0} \end{matrix} \right.}} \right.}} & \left\lbrack {{Formula}\mspace{14mu} 14} \right\rbrack \\ {\rho_{i}^{n + 1} = {\rho_{i}^{n} + {2\;{dt}{\sum\limits_{j}{\frac{m_{j}\rho_{i}^{n}}{\rho_{j}^{n}}\left( {{\frac{v_{i}^{s,{n + 1}} + {\overset{\_}{v}}_{i}^{s,n}}{2} - {\left. \quad v_{ij}^{s,{n + {1/2}}} \right)\frac{\partial\;}{\partial\left( {{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}} \right)}{W\left( {{{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}},h} \right)}}},} \right.}}}}} & \left\lbrack {{Formula}\mspace{14mu} 15} \right\rbrack \end{matrix}$ wherein a subscript expresses the number of the particle, that is, r_(i), v_(i), ρ_(i), p_(i) represent the position vector, velocity vector, density, and pressure of the i-th particle respectively, m_(j) is the mass of the j-th particle, and ξ, η are constants introduced to calculate a viscous term, wherein $f_{ij} = {\frac{8}{r_{\min}^{2}}\left( {1 - \left( \frac{{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}}{r_{\min}} \right)^{2}} \right)^{3}\frac{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}{{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}}}$ (r_(min) is a constant), wherein $\begin{matrix} {f_{k,{s\; 1}} = {{{- \frac{\partial\;}{\partial r_{k}}}{E_{s,{p\; 1}}\left( {r_{1},r_{2},\ldots\mspace{14mu},r_{n}} \right)}} \approx {{Q{\sum\limits_{j}{\left\lbrack {{\left( {\Gamma_{g} - \Gamma_{s}} \right)\left( {{\frac{m_{k}}{\rho_{k}}\left( \frac{m_{j}}{\rho_{j}} \right)^{1 - \frac{1}{d}}f_{k}\chi_{j}} + {\frac{m_{j}}{\rho_{j}}\left( \frac{m_{k}}{\rho_{k}} \right)^{1 - \frac{1}{d}}f_{j}\chi_{k}}} \right)} + {\Gamma_{s}\left( {{\frac{m_{k}}{\rho_{k}}\left( \frac{m_{j}}{\rho_{k}} \right)^{1 - \frac{1}{d}}f_{k}} + {\frac{m_{j}}{\rho_{j}}\left( \frac{m_{k}}{\rho_{k}} \right)^{1 - \frac{1}{d}}f_{j}}} \right)}} \right\rbrack\frac{\partial{W\left( {{{r_{k} - r_{j}}},h} \right)}}{\partial r_{k}}}}} - {{Q\left( {\Gamma_{g} - \Gamma_{s}} \right)}{\sum\limits_{j}{\frac{m_{j}}{\rho_{j}}\left( \frac{m_{k}}{\rho_{k}} \right)^{1 - \frac{1}{d}}f_{j}\frac{\partial\chi_{k}}{\partial r_{k}}{W\left( {{r_{k} - r_{j}}} \right)}}}}}}} & \left\lbrack {{Formula}\mspace{14mu} 6} \right\rbrack \end{matrix}$ is applied, and χ_(i)=χ_(i)( y _(i)*:ε) if a plain surface of v=0 is a wall surface of a solid, wherein g is gravity acceleration, y is a unit vector in the y direction, h expresses an influence radius which is a radius of a spherical area in which a value of a kernel function is non-zero, and W is an overlap of kernel functions used in the SPH method, wherein L( r _(i)*) is a renormalization matrix of ${{L\left( r_{i} \right)} = \left\lbrack {\sum\limits_{j}{\frac{m_{j}}{\rho_{j}}{\left( {r_{j} - r_{i}} \right) \otimes \frac{\partial}{\partial r_{i}}}{W\left( {{{r_{i} - r_{j}}},h} \right)}}} \right\rbrack^{- 1}},$ and if ${\overset{\_}{n}}_{ij}^{*} = {\left( \frac{{L\left( {\overset{\_}{r}}_{i}^{*} \right)} + {L\left( {\overset{\_}{r}}_{i}^{*} \right)}}{2} \right)\frac{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}{{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}}}$ v_(i) ^(s,n)= v _(i) ^(n)· n _(ij)* v_(j) ^(s,n)= v _(j) ^(n)· n _(ij)* , wherein p_(ij) ^(n+1/2),v_(ij) ^(s,n+1/2) are intermediate values of space-time determined by solving the one-dimensional Riemann problem between the particles i and i, the values being determined by a process including: first setting the following characteristic quantities with respect to the particles i and j: $\begin{matrix} {q_{i}^{n, +} = {{\log\left( \rho_{i}^{n} \right)} + \frac{v_{i}^{s,n}}{c}}} & \left\lbrack {{Formula}\mspace{14mu} 16} \right\rbrack \\ {q_{i}^{n, -} = {{\log\left( \rho_{i}^{n} \right)} - \frac{v_{i}^{s,n}}{c}}} & \left\lbrack {{Formula}\mspace{14mu} 17} \right\rbrack \\ {q_{j}^{n, +} = {{\log\;\left( \rho_{j}^{n} \right)} + \frac{v_{j}^{s,n}}{c}}} & \left\lbrack {{Formula}\mspace{14mu} 18} \right\rbrack \\ {{q_{j}^{n, -} = {{\log\left( \rho_{j}^{n} \right)} - \frac{v_{j}^{s,n}}{c}}};} & \left\lbrack {{Formula}\mspace{14mu} 19} \right\rbrack \end{matrix}$ and then calculating each gradient as follows: $\begin{matrix} {\left. {\nabla\;{\log(\rho)}} \right|_{i} = {\sum\limits_{k}{\frac{m_{k}}{\rho_{i}}\left( {{\log\left( \rho_{k}^{n} \right)} - {\log\left( \rho_{i}^{n} \right)}} \right){L\left( {\overset{\_}{r}}_{i}^{*} \right)}\frac{\partial{W\left( {{{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{k}^{*}}},h} \right)}}{\partial{\overset{\_}{r}}_{i}^{*}}}}} & \left\lbrack {{Formula}\mspace{14mu} 20} \right\rbrack \\ {\left. {\nabla v} \right|_{i} = {\sum\limits_{k}{\frac{m_{k}}{\rho_{k}}\;{L\left( {\overset{\_}{r}}_{i}^{*} \right)}{\frac{\partial{W\left( {{{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{k}^{*}}},h} \right)}}{\partial{\overset{\_}{r}}_{i}^{*}} \otimes \left( {{\overset{\_}{v}}_{k}^{n} - {\overset{\_}{v}}_{i}^{n}} \right)}}}} & \left\lbrack {{Formula}\mspace{14mu} 21} \right\rbrack \\ {{{\nabla q}{_{i}^{n, +}{= {\nabla\;{\log(\rho)}}}}_{i}} + \frac{\left. {\nabla v} \middle| {}_{i}{\overset{\_}{n}}_{ij}^{*} \right.}{c}} & \left\lbrack {{Formula}\mspace{14mu} 22} \right\rbrack \\ {{{\nabla q}{_{j}^{n, +}{= {\nabla{\log(\rho)}}}}_{j}} + \frac{\left. {\nabla v} \middle| {}_{j}{\overset{\_}{n}}_{ij}^{*} \right.}{c}} & \left\lbrack {{Formula}\mspace{14mu} 23} \right\rbrack \\ {{{\nabla q}{_{i}^{n, -}{= {\nabla{\log(\rho)}}}}_{i}} - \frac{\left. {\nabla\; v} \middle| {}_{i}{\overset{\_}{n}}_{ij}^{*} \right.}{c}} & \left\lbrack {{Formula}\mspace{14mu} 24} \right\rbrack \\ {{{{\nabla\; q}{_{j}^{n, -}{= {\nabla{\log(\rho)}}}}_{j}} - \frac{\left. {\nabla\; v} \middle| {}_{j}{\overset{\_}{n}}_{ij}^{*} \right.}{c}},} & \left\lbrack {{Formula}\mspace{14mu} 25} \right\rbrack \end{matrix}$ and wherein r _(ij)*= r _(i)*− r _(j)*, r_(ij)*=| r _(ij)*| and using the above quantities, p_(ij) ^(n+1/2),v_(ij) ^(s,n+1/2) are determined as follows: $\begin{matrix} {q_{ij}^{{n + {1/2}}, +} = {q_{j}^{n, +} + {\left( {\frac{{\overset{\_}{r}}_{ij}^{*}}{2} - \frac{cdt}{2}} \right)\left( {{{\overset{\_}{r}}_{ij}^{*} \cdot {\nabla\; q}}|_{j}^{n, +}} \right)}}} & \left\lbrack {{Formula}\mspace{14mu} 26} \right\rbrack \\ {q_{ij}^{{n + {1/2}}, -} = {q_{i}^{n, +} - {\left( {\frac{{\overset{\_}{r}}_{ij}^{*}}{2} + \frac{cdt}{2}} \right)\left( {{{\overset{\_}{r}}_{ij}^{*} \cdot {\nabla q}}|_{i}^{n, -}} \right)}}} & \left\lbrack {{Formula}\mspace{14mu} 27} \right\rbrack \\ {\rho_{ij}^{n + {1/2}} = {\exp\left( \frac{q_{ij}^{n + {1/2}} + q_{ij}^{{n + {1/2}}, -}}{2} \right)}} & \left\lbrack {{Formula}\mspace{14mu} 28} \right\rbrack \\ {v_{ij}^{n + {1/2}} = {c\left( \frac{q_{ij}^{{n + {1/2}}, +} - q_{ij}^{{n + {1/2}}, -}}{2} \right)}} & \left\lbrack {{Formula}\mspace{14mu} 29} \right\rbrack \\ {p_{ij}^{n + {1/2}} = {{c^{2}\left( {\rho_{ij}^{n + {1/2}} + \rho_{0}} \right)}.}} & \left\lbrack {{Formula}\mspace{14mu} 30} \right\rbrack \end{matrix}$
 5. A simulation device for suppressing behaviors including generating an unnatural velocity distribution when simulating a temporal shape change in a fluid, the simulation device comprising: a processor which performs a process including: obtaining a position vector and a velocity vector of a particle forming the fluid from a storage unit, calculating, with respect to a fluid model representing the fluid as a collection of particles, a force applied to each particle and a surface tension applied to each particle using the obtained position vector and velocity vector; adding the calculated force applied to each particle and surface tension applied to each particle to the velocity vector so as to update a velocity of each particle; calculating a shape change in the fluid using the updated velocity of each particle; and an output unit configured to output the calculated shape change, wherein $\begin{matrix} {{v_{i}^{\;^{*},{n + 1}} = {{\overset{\_}{v}}_{i}^{n} - {2{\mathbb{d}{t\left\lbrack {\sum\limits_{j}{{m_{j}\left( \frac{p_{ij}^{n + {1/2}}}{\rho_{i}^{n}\rho_{j}^{n}} \right)}\left( \frac{{L\left( {\overset{\_}{r}}_{i}^{*} \right)} + {L\left( {\overset{\_}{r}}_{i}^{*} \right)}}{2} \right)\frac{\partial{W\left( {{{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}},h} \right)}}{\partial r_{i}^{*}}}} \right\rbrack}}} - {\frac{1}{2}{\sum\limits_{j}{{m_{j}\left( {\frac{4{\mu\xi}}{\rho_{i}\rho_{j}}\frac{\left( {{\overset{\_}{v}}_{i}^{n} - {\overset{\_}{v}}_{j}^{n}} \right) \cdot \left( {{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}} \right)}{{{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}}^{2} + \eta^{2}}} \right)}v_{ij}^{i}\frac{\partial{W\left( {{{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}},h} \right)}}{\partial r_{i}^{*}}}}} - {g\hat{y}} + \frac{f_{ij}}{m_{i}} + \frac{f_{i,{s\; 1}}}{m_{i}}}},} & \left\lbrack {{Formula}\mspace{14mu} 12} \right\rbrack \end{matrix}$ is used when updating the velocity of each particle, [Formula 12] including a second term on the right side expressing a pressure gradient term, a third term on the right side expressing a viscous stress term, a fourth term on the right side expressing a gravity term, and a fifth term on the right side which is a force for preventing the distance between particles from becoming too close, to calculate the force applied to each particle, as well as a sixth term on the right side which is a surface tension, and followed by the following calculation: $\begin{matrix} {r_{i}^{*{,{n + 1}}} = {{\overset{\_}{r}}_{i}^{*} + {\frac{\mathbb{d}t}{2}v_{i}^{*{,{n + 1}}}}}} & \left\lbrack {{Formula}\mspace{14mu} 13} \right\rbrack \\ {r_{i}^{n + 1} = \left\{ {{\begin{matrix} r_{i}^{\;^{*},{n + 1}} & {y_{i}^{\;^{*},{n + 1}} > 0} \\ {r_{i}^{\;^{*},{n + 1}} - \frac{y_{i}^{\;^{*},{n + 1}}}{v_{i,y}^{\;^{*},{n + 1}}}} & {{y_{i}^{\;^{*},{n + 1}} \leq 0},} \end{matrix}v_{i}^{n + 1}} = \left\{ \begin{matrix} v_{i}^{\;^{*},{n + 1}} & {y_{i}^{\;^{*},{n + 1}} > 0} \\ {\left( {1 - \frac{y_{i}^{\;^{*},{n + 1}}}{{dtv}_{i,y}^{\;^{*},{n + 1}}}} \right)v_{i}^{\;^{*},{n + 1}}} & {y_{i}^{\;^{*},{n + 1}} \leq 0} \end{matrix} \right.} \right.} & \left\lbrack {{Formula}\mspace{14mu} 14} \right\rbrack \\ {{\rho_{i}^{n + 1} = {\rho_{i}^{n} + {2\;{dt}{\sum\limits_{j}{\frac{m_{j}\rho_{i}^{n}}{\rho_{j}^{n}}\left( {\frac{v_{i}^{s,{n + 1}} + {\overset{\_}{v}}_{i}^{s,n}}{2} - v_{ij}^{s,{n + {1/2}}}} \right)\frac{\partial\;}{\partial\left( {{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}} \right)}{W\left( {{{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}},h} \right)}}}}}},} & \left\lbrack {{Formula}\mspace{14mu} 15} \right\rbrack \end{matrix}$ wherein a subscript expresses the number of the particle, that is, r_(i),v_(i), ρ_(i), p_(i) represent the position vector, velocity vector, density, and pressure of the i-th particle respectively, m_(j) is the mass of the j-th particle, and ξ, η are constants introduced to calculate a viscous term, wherein $f_{ij} = {\frac{8}{r_{\min}^{2}}\left( {1 - \left( \frac{{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}}{r_{\min}} \right)^{2}} \right)^{3}\frac{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}{{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}}}$ (r_(min) is a constant), wherein $\begin{matrix} {f_{k,{s\; 1}} = {{{- \frac{\partial\;}{\partial r_{k}}}{E_{s,{p\; 1}}\left( {r_{1},r_{2},\ldots\mspace{14mu},r_{n}} \right)}} \approx {{Q{\sum\limits_{j}{\left\lbrack {{\left( {\Gamma_{g} - \Gamma_{s}} \right)\left( {{\frac{m_{k}}{\rho_{k}}\left( \frac{m_{j}}{\rho_{j}} \right)^{1 - \frac{1}{d}}f_{k}\chi_{j}} + {\frac{m_{j}}{\rho_{j}}\left( \frac{m_{k}}{\rho_{k}} \right)^{1 - \frac{1}{d}}f_{j}\chi_{k}}} \right)} + {\Gamma_{s}\left( {{\frac{m_{k}}{\rho_{k}}\left( \frac{m_{j}}{\rho_{k}} \right)^{1 - \frac{1}{d}}f_{k}} + {\frac{m_{j}}{\rho_{j}}\left( \frac{m_{k}}{\rho_{k}} \right)^{1 - \frac{1}{d}}f_{j}}} \right)}} \right\rbrack\frac{\partial{W\left( {{{r_{k} - r_{j}}},h} \right)}}{\partial r_{k}}}}} - {{Q\left( {\Gamma_{g} - \Gamma_{s}} \right)}{\sum\limits_{j}{\frac{m_{j}}{\rho_{j}}\left( \frac{m_{k}}{\rho_{k}} \right)^{1 - \frac{1}{d}}f_{j}\frac{\partial\chi_{k}}{\partial r_{k}}{W\left( {{r_{k} - r_{j}}} \right)}}}}}}} & \left\lbrack {{Formula}\mspace{14mu} 6} \right\rbrack \end{matrix}$ is applied, and χ_(i)=χ_(i)( y _(i)*,ε) if a plain surface of y=0 is a wall surface of a solid, wherein g is gravity acceleration, y is a unit vector in the y direction, h expresses an influence radius which is a radius of a spherical area in which a value of a kernel function is non-zero, and W is an overlap of kernel functions used in the SPH method, wherein L( r _(i)*) is a renormalization matrix of ${{L\left( r_{i} \right)} = \left\lbrack {\sum\limits_{j}{\frac{m_{j}}{\rho_{j}}{\left( {r_{j} - r_{i}} \right) \otimes \frac{\partial}{\partial r_{i}}}{W\left( {{{r_{i} - r_{j}}},h} \right)}}} \right\rbrack^{- 1}},$ and if ${\overset{\_}{n}}_{ij}^{*} = {\left( \frac{{L\left( {\overset{\_}{r}}_{i}^{*} \right)} + {L\left( {\overset{\_}{r}}_{i}^{*} \right)}}{2} \right)\frac{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}{{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{j}^{*}}}}$ v_(i) ^(s,n)= v _(i) ^(n)· n _(ij)* v_(j) ^(s,n)= v _(j) ^(n)· n _(ij)* , wherein p_(ij) ^(n+1/2),v_(ij) ^(s,n+1/2) are intermediate values of space-time determined by solving the one-dimensional Riemann problem between the particles i and j, the values being determined by a process including: first setting the following characteristic quantities with respect to the particles i and j: $\begin{matrix} {q_{i}^{n, +} = {{\log\left( \rho_{i}^{n} \right)} + \frac{v_{i}^{s,n}}{c}}} & \left\lbrack {{Formula}\mspace{14mu} 16} \right\rbrack \\ {q_{i}^{n, -} = {{\log\left( \rho_{i}^{n} \right)} - \frac{v_{i}^{s,n}}{c}}} & \left\lbrack {{Formula}\mspace{14mu} 17} \right\rbrack \\ {q_{j}^{n, +} = {{\log\;\left( \rho_{j}^{n} \right)} + \frac{v_{j}^{s,n}}{c}}} & \left\lbrack {{Formula}\mspace{14mu} 18} \right\rbrack \\ {{q_{j}^{n, -} = {{\log\left( \rho_{j}^{n} \right)} - \frac{v_{j}^{s,n}}{c}}};} & \left\lbrack {{Formula}\mspace{14mu} 19} \right\rbrack \end{matrix}$ and then calculating each gradient as follows: $\begin{matrix} {\left. {\nabla\;{\log(\rho)}} \right|_{i} = {\sum\limits_{k}{\frac{m_{k}}{\rho_{i}}\left( {{\log\left( \rho_{k}^{n} \right)} - {\log\left( \rho_{i}^{n} \right)}} \right){L\left( {\overset{\_}{r}}_{i}^{*} \right)}\frac{\partial{W\left( {{{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{k}^{*}}},h} \right)}}{\partial{\overset{\_}{r}}_{i}^{*}}}}} & \left\lbrack {{Formula}\mspace{14mu} 20} \right\rbrack \\ {\left. {\nabla v} \right|_{i} = {\sum\limits_{k}{\frac{m_{k}}{\rho_{k}}\;{L\left( {\overset{\_}{r}}_{i}^{*} \right)}{\frac{\partial{W\left( {{{{\overset{\_}{r}}_{i}^{*} - {\overset{\_}{r}}_{k}^{*}}},h} \right)}}{\partial{\overset{\_}{r}}_{i}^{*}} \otimes \left( {{\overset{\_}{v}}_{k}^{n} - {\overset{\_}{v}}_{i}^{n}} \right)}}}} & \left\lbrack {{Formula}\mspace{14mu} 21} \right\rbrack \\ {{{\nabla q}{_{i}^{n, +}{= {\nabla\;{\log(\rho)}}}}_{i}} + \frac{\left. {\nabla v} \middle| {}_{i}{\overset{\_}{n}}_{ij}^{*} \right.}{c}} & \left\lbrack {{Formula}\mspace{14mu} 22} \right\rbrack \\ {{{\nabla q}{_{j}^{n, +}{= {\nabla{\log(\rho)}}}}_{j}} + \frac{\left. {\nabla v} \middle| {}_{j}{\overset{\_}{n}}_{ij}^{*} \right.}{c}} & \left\lbrack {{Formula}\mspace{14mu} 23} \right\rbrack \\ {{{\nabla q}{_{i}^{n, -}{= {\nabla{\log(\rho)}}}}_{i}} - \frac{\left. {\nabla\; v} \middle| {}_{i}{\overset{\_}{n}}_{ij}^{*} \right.}{c}} & \left\lbrack {{Formula}\mspace{14mu} 24} \right\rbrack \\ {{{{\nabla\; q}{_{j}^{n, -}{= {\nabla{\log(\rho)}}}}_{j}} - \frac{\left. {\nabla\; v} \middle| {}_{j}{\overset{\_}{n}}_{ij}^{*} \right.}{c}},} & \left\lbrack {{Formula}\mspace{14mu} 25} \right\rbrack \end{matrix}$ and wherein r _(ij)*= r _(i)*− r _(j)*, r_(ij)*=| r _(ij)*| and using the above quantities, p_(ij) ^(n+1/2),v_(ij) ^(s,n+1/2) are determined as follows: $\begin{matrix} {q_{ij}^{{n + {1/2}}, +} = {q_{j}^{n, +} + {\left( {\frac{{\overset{\_}{r}}_{ij}^{*}}{2} - \frac{cdt}{2}} \right)\left( {{{\overset{\_}{r}}_{ij}^{*} \cdot {\nabla\; q}}|_{j}^{n, +}} \right)}}} & \left\lbrack {{Formula}\mspace{14mu} 26} \right\rbrack \\ {q_{ij}^{{n + {1/2}}, -} = {q_{i}^{n, +} - {\left( {\frac{{\overset{\_}{r}}_{ij}^{*}}{2} + \frac{cdt}{2}} \right)\left( {{{\overset{\_}{r}}_{ij}^{*} \cdot {\nabla q}}|_{i}^{n, -}} \right)}}} & \left\lbrack {{Formula}\mspace{14mu} 27} \right\rbrack \\ {\rho_{ij}^{n + {1/2}} = {\exp\left( \frac{q_{ij}^{n + {1/2}} + q_{ij}^{{n + {1/2}}, -}}{2} \right)}} & \left\lbrack {{Formula}\mspace{14mu} 28} \right\rbrack \\ {v_{ij}^{n + {1/2}} = {c\left( \frac{q_{ij}^{{n + {1/2}}, +} - q_{ij}^{{n + {1/2}}, -}}{2} \right)}} & \left\lbrack {{Formula}\mspace{14mu} 29} \right\rbrack \\ {p_{ij}^{n + {1/2}} = {{c^{2}\left( {\rho_{ij}^{n + {1/2}} + \rho_{0}} \right)}.}} & \left\lbrack {{Formula}\mspace{14mu} 30} \right\rbrack \end{matrix}$ 